//
//  MineWithdrawCell.m
//  Srb_ios
//
//  Created by Ji on 2018/9/19.
//  Copyright © 2018年 ski. All rights reserved.
//

#import "QWYDliJLCFMineWithdrawCellWMSlXe.h"

@interface QWYDliJLCFMineWithdrawCellWMSlXe ()

@property (nonatomic, strong) UILabel *EFjsMIorderLabelsxrBsp;

@property (nonatomic, strong) UILabel *giAZzBstatusLabelmYmPuF;

@property (nonatomic, strong) UILabel *UmauIuborrowTimeTitleLabelacNcDq;

@property (nonatomic, strong) UILabel *tIYmThborrowTimeLabelpAoDrV;

@property (nonatomic, strong) UILabel *OEhpOHmoneyTitleLabelUtbXJD;

@property (nonatomic, strong) UILabel *TvtacpmoneyLabelIfJqAd;

@property (nonatomic, strong) UILabel *hEzrxoseqnoTitleLabelewPHdc;

@property (nonatomic, strong) UILabel *xUbRlTseqnoLabelDRVAgP;

@end

@implementation QWYDliJLCFMineWithdrawCellWMSlXe

- (void)reloadData
{
    
    self.backgroundColor = QTZ_White;
    if (self.data) {
        
        if (!self.EFjsMIorderLabelsxrBsp) {
            self.EFjsMIorderLabelsxrBsp = [UILabel new];
            self.EFjsMIorderLabelsxrBsp.textColor = QTZ_Gray51;
            self.EFjsMIorderLabelsxrBsp.font = FONT(15);
            [self addSubview:self.EFjsMIorderLabelsxrBsp];
        }
        
        if (self.EFjsMIorderLabelsxrBsp) {
            self.EFjsMIorderLabelsxrBsp.text = [NSString stringWithFormat:@"订单号：%@", self.data.id];
            [self.EFjsMIorderLabelsxrBsp sizeToFit];
            self.EFjsMIorderLabelsxrBsp.left = 11;
            self.EFjsMIorderLabelsxrBsp.top = 18;
        }
        
        if (!self.giAZzBstatusLabelmYmPuF) {
            self.giAZzBstatusLabelmYmPuF = [UILabel new];
            self.giAZzBstatusLabelmYmPuF.font = FONT(12);
            [self addSubview:self.giAZzBstatusLabelmYmPuF];
        }
        
        if (self.giAZzBstatusLabelmYmPuF) {
            if ([self.data.status isEqualToString:@"-3"] || [self.data.status isEqualToString:@"-1"]) {
                self.giAZzBstatusLabelmYmPuF.textColor = RGB(252, 5, 22);
                self.giAZzBstatusLabelmYmPuF.text = @"失败";
            } else if ([self.data.status isEqualToString:@"1"]) {
                self.giAZzBstatusLabelmYmPuF.textColor = RGB(6, 191, 1);
                self.giAZzBstatusLabelmYmPuF.text = @"成功";
            } else if ([self.data.status isEqualToString:@"2"]) {
                self.giAZzBstatusLabelmYmPuF.textColor = Theme_Color;
                self.giAZzBstatusLabelmYmPuF.text = @"处理中";
            }
            
            [self.giAZzBstatusLabelmYmPuF sizeToFit];
            self.giAZzBstatusLabelmYmPuF.right = FULL_WIDTH - 11;
            self.giAZzBstatusLabelmYmPuF.centerY = self.EFjsMIorderLabelsxrBsp.centerY;
        }
        
        if (!self.UmauIuborrowTimeTitleLabelacNcDq) {
            self.UmauIuborrowTimeTitleLabelacNcDq = [UILabel labelWithText:@"提现时间" textColor:QTZ_Gray51 font:FONT(12)];
            self.UmauIuborrowTimeTitleLabelacNcDq.left = self.EFjsMIorderLabelsxrBsp.left;
            self.UmauIuborrowTimeTitleLabelacNcDq.top = self.EFjsMIorderLabelsxrBsp.bottom + 15;
            [self addSubview:self.UmauIuborrowTimeTitleLabelacNcDq];
            [self.UmauIuborrowTimeTitleLabelacNcDq.layer addSublayer:[CALayer addLineOriginPoint:CGPointMake(0, self.UmauIuborrowTimeTitleLabelacNcDq.height + 5) toPoint:CGPointMake(self.giAZzBstatusLabelmYmPuF.right, self.UmauIuborrowTimeTitleLabelacNcDq.height + 5) color:QTZ_Gray237 borderWidth:.5]];
        }
        
        if (!self.tIYmThborrowTimeLabelpAoDrV) {
            self.tIYmThborrowTimeLabelpAoDrV = [UILabel new];
            self.tIYmThborrowTimeLabelpAoDrV.textColor = QTZ_Gray51;
            self.tIYmThborrowTimeLabelpAoDrV.font = FONT(12);
            [self addSubview:self.tIYmThborrowTimeLabelpAoDrV];
        }
        
        if (self.tIYmThborrowTimeLabelpAoDrV) {
            self.tIYmThborrowTimeLabelpAoDrV.text = [NSString stringWithTime:self.data.addtime];
            [self.tIYmThborrowTimeLabelpAoDrV sizeToFit];
            self.tIYmThborrowTimeLabelpAoDrV.right = self.giAZzBstatusLabelmYmPuF.right;
            self.tIYmThborrowTimeLabelpAoDrV.centerY = self.UmauIuborrowTimeTitleLabelacNcDq.centerY;
        }
        
        if (!self.OEhpOHmoneyTitleLabelUtbXJD) {
            self.OEhpOHmoneyTitleLabelUtbXJD = [UILabel labelWithText:@"提现金额" textColor:QTZ_Gray51 font:FONT(12)];
            self.OEhpOHmoneyTitleLabelUtbXJD.left = self.EFjsMIorderLabelsxrBsp.left;
            self.OEhpOHmoneyTitleLabelUtbXJD.top = self.UmauIuborrowTimeTitleLabelacNcDq.bottom + 12;
            [self addSubview:self.OEhpOHmoneyTitleLabelUtbXJD];
            [self.OEhpOHmoneyTitleLabelUtbXJD.layer addSublayer:[CALayer addLineOriginPoint:CGPointMake(0, self.OEhpOHmoneyTitleLabelUtbXJD.height + 5) toPoint:CGPointMake(self.giAZzBstatusLabelmYmPuF.right, self.OEhpOHmoneyTitleLabelUtbXJD.height + 5) color:QTZ_Gray237 borderWidth:.5]];
        }
        
        if (!self.TvtacpmoneyLabelIfJqAd) {
            self.TvtacpmoneyLabelIfJqAd = [UILabel new];
            self.TvtacpmoneyLabelIfJqAd.textColor = QTZ_Gray51;
            self.TvtacpmoneyLabelIfJqAd.font = FONT(12);
            [self addSubview:self.TvtacpmoneyLabelIfJqAd];
        }
        
        if (self.TvtacpmoneyLabelIfJqAd) {
            self.TvtacpmoneyLabelIfJqAd.text = self.data.money;
            [self.TvtacpmoneyLabelIfJqAd sizeToFit];
            self.TvtacpmoneyLabelIfJqAd.right = self.giAZzBstatusLabelmYmPuF.right;
            self.TvtacpmoneyLabelIfJqAd.centerY = self.OEhpOHmoneyTitleLabelUtbXJD.centerY;
        }
        
        if (!self.hEzrxoseqnoTitleLabelewPHdc) {
            self.hEzrxoseqnoTitleLabelewPHdc = [UILabel labelWithText:@"交易流水号" textColor:QTZ_Gray51 font:FONT(12)];
            self.hEzrxoseqnoTitleLabelewPHdc.left = self.EFjsMIorderLabelsxrBsp.left;
            self.hEzrxoseqnoTitleLabelewPHdc.top = self.OEhpOHmoneyTitleLabelUtbXJD.bottom + 12;
            [self addSubview:self.hEzrxoseqnoTitleLabelewPHdc];
        }
        
        if (!self.xUbRlTseqnoLabelDRVAgP) {
            self.xUbRlTseqnoLabelDRVAgP = [UILabel new];
            self.xUbRlTseqnoLabelDRVAgP.textColor = QTZ_Gray51;
            self.xUbRlTseqnoLabelDRVAgP.font = FONT(12);
            [self addSubview:self.xUbRlTseqnoLabelDRVAgP];
        }
        
        if (self.xUbRlTseqnoLabelDRVAgP) {
            self.xUbRlTseqnoLabelDRVAgP.text = self.data.seqno;
            [self.xUbRlTseqnoLabelDRVAgP sizeToFit];
            self.xUbRlTseqnoLabelDRVAgP.right = self.giAZzBstatusLabelmYmPuF.right;
            self.xUbRlTseqnoLabelDRVAgP.centerY = self.hEzrxoseqnoTitleLabelewPHdc.centerY;
        }
        
        
    }
    
    
}

@end
